package com.blast.comicsisland.model.topic;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by ibm on 2015/6/26.
 */
public class SpecialDescriptionContent {
    private int targetmethod;
    private String title;
    private String targetargument;
    private String coverurl;
    private String description;

    public void parseJSON(JSONObject jsonObject){
        if (jsonObject != null){
            try {
                targetmethod = jsonObject.getInt("targetmethod");
                title = jsonObject.getString("title");
                targetargument = jsonObject.getString("targetargument");
                coverurl = jsonObject.getString("coverurl");
                description = jsonObject.getString("description");
            } catch (JSONException e) {
                e.printStackTrace();
            }
        }
    }

    public int getTargetmethod() {
        return targetmethod;
    }

    public void setTargetmethod(int targetmethod) {
        this.targetmethod = targetmethod;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTargetargument() {
        return targetargument;
    }

    public void setTargetargument(String targetargument) {
        this.targetargument = targetargument;
    }

    public String getCoverurl() {
        return coverurl;
    }

    public void setCoverurl(String coverurl) {
        this.coverurl = coverurl;
    }
}
